﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _010_011_012操作符详解_7_
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int x  =sizeof(int);//字节数
            Console.WriteLine(x);//4
            int y =sizeof(double);
            Console.WriteLine(y);//8
            int z = sizeof(decimal);
            Console.WriteLine(z);//16
            unsafe
            {
                int q = sizeof(Student);
                Console.WriteLine(q);//16
            }
        }

        struct Student
        {
            int ID; // 4
            long Score; //8
        }
    }
}
